package com.warmhearted.SmsAnnouncingService;



import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;


public class StartNewActivity extends Activity {

	@Override
    public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        //Do this to do anything
        
        //first stop the SmsMessageNotificationService to clear the number of pending messages
        //the service will be automatically started once a new SMS arrives
        Context _context = getApplicationContext();
        Intent smsIntent = new Intent(_context,SmsMessageNotificationService.class);
		smsIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		_context.stopService(smsIntent);
	}
}
